package com.ea.admin.pojo.param.file;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DownloadChunkParam {

    @ApiModelProperty(value = "文件块编号，从1开始", required = true)
    @NotNull(message = "文件块编号不能为空")
    private Integer index;

    @ApiModelProperty(value = "文件标识MD5", required = true)
    @NotBlank(message = "文件标识MD5不能为空")
    private String md5;

    @ApiModelProperty(value = "块大小", required = true)
    @NotNull(message = "块大小不能为空")
    private Integer chunkSize;
}
